package com.hm.prac3;

import java.util.ArrayList;
import java.util.Collections;

public class Test {
    public static void main(String[] args) {
        Developer d = new Developer();
        Car car = new Car("奔驰", "blue", "鲁g3366");
        ElectricVehicle electricVehicle = new ElectricVehicle("特拉斯", "white");
        Bicycle bicycle = new Bicycle("按揭特", "black");
        ArrayList<Vehicle> vehicles = new ArrayList<>();
        Collections.addAll(vehicles,car,electricVehicle,bicycle);
        for (Vehicle vehicle : vehicles) {
            d.takingVehicle(vehicle);
        }
    }
}
